package oo5;

import oo4.Dog;
import oo4.Penguin;
import oo4.Pet;

public class Zoo {
	private String zooName;

	public Zoo(String n) {
		this.zooName = n;
	}

	// 出售宠物
	public Pet sell(int money) {
		if (money > 500000) {
			return new Tiger("花花", 99, 99, "公");
		}
		if (money > 200000) {
			return new Penguin("南极企鹅");
		}
		if (money > 10000) {
			return new Myna("小乖乖", 60, 75, "雄");
		}
		if (money > 500) {
			return new Dog("中华田园犬", "二黄", 100, 99, "母");
		}
		return null;
	}
}
